﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Xml;

namespace _4SquareLite
{
    public partial class ucScoreListItem : UserControl
    {
        public ucScoreListItem(XmlNode xmlScore)
        {
            InitializeComponent();

            lblScore.Text = Program.getInnerText(xmlScore, "points");

            string strIconURL = Program.getInnerText(xmlScore, "icon");
            pbIcon.Image = Program.getImageFromURL(strIconURL);

            lblMessage.Text = Program.getInnerText(xmlScore, "message");
        }
    }
}
